﻿<%@ Control Language="c#" AutoEventWireup="false" Inherits="Web.Control.Member.My.MyCourses" %>
<asp:Literal ID="lLCount" Text="15" runat="server" Visible="false"/>
<div class="common">
	<div id="new_body">
		<div id="body_900">
			<div id="body_left"></div>
			<div id="body_main">
				<div class="submenuN">
					<div class="submenuN_position">
						<div class="submenuN_title">
							<div class="submenuN_Btitle">
								<h1>My Courses</h1>
							</div>
							<div class="submenuN_button"><a href="<%=WWWHost %>/course/addcourse.htm" class="specgbtn btnspec" style="text-decoration:none"><span>&nbsp;&nbsp;&nbsp;<%=GetText("TP072")%>&nbsp;&nbsp;&nbsp;</span></a></div>
						</div>
					</div>
				</div>
				<div class="Center9001n">
					<div class="Center9001common">
							<div class="center9001content">
								<div class="myhome_area">
									<div class="">
										<div class="spectitle2">
										<div class="floatl"><%=RecordCount %> Courses</div>
										<div class="floatr"><ul class="sortby"><li class="sort">Sort by:</li><%=s == 1 ? "<li><strong>Most Recent</strong></li>" : "<li><a href=\"" + WWWHost + "/my/mycourses.htm\">Most Recent</a></li>"%><%=s == 2 ? "<li><strong>Most booked</strong></li>" : "<li><a href=\"" + WWWHost + "/my/mycourses-2-1.htm\">Most booked</a></li>"%><%=s == 3 ? "<li class='last'><strong>Most Viewed</strong></li>" : "<li class='last'><a href=\"" + WWWHost + "/my/mycourses-3-1.htm\">Most Viewed</a></li>"%></ul></div><div class="clear"></div>
										</div>
										<asp:Repeater ID="rpcm" runat="server">
										<ItemTemplate>
										<div class="profile_courses_loop">
													<h3><a href="<%#WWWHost %>/course/<%#Eval("CID") %>"><%#Lx.Web.Common.UI.Globals.HtmlStrippedText(Eval("Title").ToString())%></a></h3>
													<div class="profile_courses_list_intro grey12"><%#Lx.Web.Common.UI.Globals.GetString(Lx.Web.Common.UI.Globals.HtmlStrippedText(Eval("Desc").ToString()), 300)%></div>
													<div class="profile_courses_list_op">
														<%=GetText("TP008")%>:&nbsp;&nbsp;<span style="color:#e2007b; font-size:14px"><%#GetText("TP066",new string[]{((decimal)Eval("Price")).ToString("N2")})%></span> 
														<p><%=GetText("C0121")%>:&nbsp;&nbsp;<%#BLF.StaticData.HaveLanguageImage(Eval("LanguageLearn").ToString())?"<img src='/Images/language_"+Eval("LanguageLearn")+".gif' align='absmiddle' />":"" %>
														<%#BLF.StaticData.GetLanguageText(Eval("LanguageLearn").ToString())%> <%#GetText("{0} Courses") %> - <%#BLF.WWW_User.Teach.Teach.GetCTypeText(Eval("CType").ToString())%></p>
														<p><%=GetText("C0018")%>:&nbsp;&nbsp;<%#BLF.WWW_User.Teach.Teach.GetLevelText(Eval("Level").ToString())%></p>
													</div>
											</div> 
										</ItemTemplate>
										</asp:Repeater>
										<div class="page_num">
										    <%=CreatePageNav(RecordCount, int.Parse(lLCount.Text), pageIndex, "",
											string.Format("<span class='page_none grey10'><a href='{0}/my/MyCourses-{2}-$I$.htm'>{1}</a></span>&nbsp;", WWWHost, HttpUtility.UrlEncode(GetText("...")),s),
											"",
											string.Format("<span class='page_none grey10'><a href='{0}/my/MyCourses-{2}-$I$.htm'>{1}</a></span>&nbsp;", WWWHost, HttpUtility.UrlEncode(GetText("...")),s),
											string.Format("<span class='page_select'>{0}</span>&nbsp;", pageIndex),
											string.Format("<span class='page_none grey10'><a href='{0}/my/MyCourses-{1}-$I$.htm'>$I$</a></span>&nbsp;",WWWHost,s))%>	
										</div>
									</div>
								</div>
							</div>
						<!--blackboard end-->
					</div>
					<div class="Center9001Left">
						<div class="ad_site" class="margin20T">
						<script type="text/javascript">
						  GA_googleFillSlot("all_pages_right160x600");
						</script>
						</div>
					</div>
					<div class="clear"></div>
				</div>
			</div>
			<div id="body_right"></div>
			<div class="clear"></div>
		</div>
		<div id="body_900F"></div>
	</div>
</div>